package com.jprocms.module.cms.controller.admin.sitetpl.dto;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;

/**
 * 创建文件夹Dto
 */

public class TplSaveDirDto {

    /**
     * 文件夹名称
     */
    @Schema(description = "文件夹名称", required = true)
    private String dirName;

    /**
     * 文件夹路径
     */
    @Schema(description = "文件夹路径，没传递则是站点模板下的根目录")
    private String root;

    @NotBlank
    public String getDirName() {
        return dirName;
    }

    public void setDirName(String dirName) {
        this.dirName = dirName;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }
}
